<!DOCTYPE html>
<html lang="en">
<head lang="en">
    <meta charset="UTF-8">
    <script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
    <title>商品列表</title>
    <script type="text/javascript">

        $.ajax({
            type: "post",
            dataType: "json",//
            url: 'http://localhost:8080/goldeneagle/ProductList',
            processData:false,
            contentType:false,
            success: function (data) {
                $.each(data,function (index,item) {
                    var trs = "<tr><td>" +item.name + "</td><td>"
                                        +item.price+ "</td><td>"
                                        +item.description+ "</td></tr>"
                        $("#ta").append(trs);
                })
            },
            error:function (err) {
                console.log("这是请求失败的");
            }
        });

    </script>
</head>
<body>
<table id="ta" style="border:1px solid aqua">


</table>
<button id="nextPage">下一页</button>
</body>

</html>